$OpenBSD: patch-src_preferences_cpp,v 1.4 2014/01/13 09:43:10 pascal Exp $
--- src/preferences.cpp.orig	Sat Aug 17 11:42:19 2013
+++ src/preferences.cpp	Sun Jan 12 03:55:08 2014
@@ -37,6 +37,8 @@
 static lg::log_domain log_config("config");
 #define ERR_CFG LOG_STREAM(err , log_config)
 
+#include <unistd.h>
+
 static lg::log_domain log_filesystem("filesystem");
 #define ERR_FS LOG_STREAM(err, log_filesystem)
 
